<template>
  <div>
    <record :isHide="true" ref="recordRef"></record>
  </div>
</template>

<script setup>
import record from "../../../flowable/task/record/index.vue";
import { getTempleateView } from "@/api/taskProgressDetails/index";

const form = ref({});
const projectId = ref("");
const recordRef = ref(null)

function getForm(project) {
  projectId.value = project;
  getTempleateView(project).then((res) => {
    form.value = res.data;
    recordRef.value.getInfo(form.value.procInsId)
  });
}

defineExpose({
  getForm
})

</script>

<style></style>
